﻿using AutoMapper;
using DLL.NET50.DB.MS.Drugs.ORM.UOW;
using System;
using System.Collections.Generic;
using System.Text;

namespace DLL.NET.DB.MS.Drugs.CRUD.Repository
{
    //ms 数据库
    public interface IMSDrugsRepository : IBaseDrugsRepository
    {
    }

    public class CMSDrugsRepository : CBaseDrugsRepository, IMSDrugsRepository
    {
        public CMSDrugsRepository(IMSDrugsUOW unitOfWork, IMapper mapper) : base(unitOfWork, mapper)
        {
        }
    }

    //backUp数据库
    public interface ILocalDrugsRepository : IBaseDrugsRepository
    {
    }

    public class CLocalDrugsRepository : CBaseDrugsRepository, ILocalDrugsRepository
    {
        public CLocalDrugsRepository(ILocalDrugsUOW unitOfWork, IMapper mapper) : base(unitOfWork, mapper)
        {
        }
    }

    //remote backUp 数据库

    //public interface IServerDrugsRepository : IBaseDrugsRepository
    //{
    //}
    //public class CServerDrugsRepository : CBaseDrugsRepository, IServerDrugsRepository
    //{
    //    public CServerDrugsRepository(IServerDrugsUOW unitOfWork, IMapper mapper) : base(unitOfWork, mapper)
    //    {
    //    }
    //}
    ////copyed useddrug ,复制回来的数据库
    //public interface ICopyDrugsRepository : IBaseDrugsRepository
    //{
    //}

    //public class CCopyDrugsRepository : CBaseDrugsRepository, ICopyDrugsRepository
    //{
    //    public CCopyDrugsRepository(ICopyDrugsUOW unitOfWork, IMapper mapper) : base(unitOfWork, mapper)
    //    {
    //    }
    //}
}